package com.fanhang.sample.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestAnnotationSchedule {

private final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Scheduled(fixedRate = 2000)
	public void timer() {
		logger.info("Annotation - timer... ");
	}
	
}
